# -*- conding:UTF-8 -*-

'''
@ Project: p7_flask
@ File: comment_fields.py
@ Author: 师路遥
@ Date：2022/6/7 8:52

'''

from flask_restful import fields

comments_fields = {
    'cmid': fields.Integer,
    'user_id': fields.Integer,
    'article_id': fields.Integer,
    'parent_id': fields.Integer,
    'like_count': fields.Integer,
    'reply_count':fields.Integer,
    'content': fields.String,
    'is_top': fields.Integer,
    'status': fields.Integer,
    'ctime': fields.DateTime
}

basic_fields = {
    'user_id':fields.Integer,
    'channel_id':fields.Integer,
    'title':fields.String,
    'contend':fields.String,
}